Optimal. Leaf size=47 \[ \frac {d \tan ^{-1}\left (\frac {e x}{\sqrt {d^2-e^2 x^2}}\right )}{e}-\frac {\sqrt {d^2-e^2 x^2}}{e} \]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 47, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {641, 217, 203} \begin {gather*} \frac {d \tan ^{-1}\left (\frac {e x}{\sqrt {d^2-e^2 x^2}}\right )}{e}-\frac {\sqrt {d^2-e^2 x^2}}{e} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 203
Rule 217
Rule 641
Rubi steps
\begin {align*} \int \frac {d+e x}{\sqrt {d^2-e^2 x^2}} \, dx &=-\frac {\sqrt {d^2-e^2 x^2}}{e}+d \int \frac {1}{\sqrt {d^2-e^2 x^2}} \, dx\\ &=-\frac {\sqrt {d^2-e^2 x^2}}{e}+d \operatorname {Subst}\left (\int \frac {1}{1+e^2 x^2} \, dx,x,\frac {x}{\sqrt {d^2-e^2 x^2}}\right )\\ &=-\frac {\sqrt {d^2-e^2 x^2}}{e}+\frac {d \tan ^{-1}\left (\frac {e x}{\sqrt {d^2-e^2 x^2}}\right )}{e}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 47, normalized size = 1.00 \begin {gather*} \frac {d \tan ^{-1}\left (\frac {e x}{\sqrt {d^2-e^2 x^2}}\right )}{e}-\frac {\sqrt {d^2-e^2 x^2}}{e} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.21, size = 66, normalized size = 1.40 \begin {gather*} \frac {d \sqrt {-e^2} \log \left (\sqrt {d^2-e^2 x^2}-\sqrt {-e^2} x\right )}{e^2}-\frac {\sqrt {d^2-e^2 x^2}}{e} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.39, size = 50, normalized size = 1.06 \begin {gather*} -\frac {2 \, d \arctan \left (-\frac {d - \sqrt {-e^{2} x^{2} + d^{2}}}{e x}\right ) + \sqrt {-e^{2} x^{2} + d^{2}}}{e} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.24, size = 32, normalized size = 0.68 \begin {gather*} d \arcsin \left (\frac {x e}{d}\right ) e^{\left (-1\right )} \mathrm {sgn}\relax (d) - \sqrt {-x^{2} e^{2} + d^{2}} e^{\left (-1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 50, normalized size = 1.06 \begin {gather*} \frac {d \arctan \left (\frac {\sqrt {e^{2}}\, x}{\sqrt {-e^{2} x^{2}+d^{2}}}\right )}{\sqrt {e^{2}}}-\frac {\sqrt {-e^{2} x^{2}+d^{2}}}{e} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 2.97, size = 32, normalized size = 0.68 \begin {gather*} \frac {d \arcsin \left (\frac {e x}{d}\right )}{e} - \frac {\sqrt {-e^{2} x^{2} + d^{2}}}{e} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.93, size = 54, normalized size = 1.15 \begin {gather*} \frac {d\,\ln \left (x\,\sqrt {-e^2}+\sqrt {d^2-e^2\,x^2}\right )}{\sqrt {-e^2}}-\frac {\sqrt {d^2-e^2\,x^2}}{e} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 2.14, size = 42, normalized size = 0.89 \begin {gather*} \begin {cases} \frac {d \left (\begin {cases} \operatorname {asin}{\left (e x \sqrt {\frac {1}{d^{2}}} \right )} & \text {for}\: d^{2} > 0 \end {cases}\right ) - \sqrt {d^{2} - e^{2} x^{2}}}{e} & \text {for}\: e \neq 0 \\\frac {d x}{\sqrt {d^{2}}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________